.headerDropdown {
  position: fixed !important;
  // top: inherit !important;
  top: 60px !important;
  right: 15px !important;
  left: inherit !important;
  :global(.antd-pro-components-global-header-index-hoverPersonBox .ant-dropdown-menu-item) {
    padding-left: 0 !important;
  }
}
.avatarBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 15px;
  padding-left: 25px;
  border-left: 2px solid #4e5154;
  span {
    flex-shrink: 0;
  }
  .avatarRight {
    display: flex;
    flex: 1;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    min-width: 70px;
    height: 100%;
    padding: 0 15px;
    > span {
      font-size: 12px;
    }
  }
}
.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    min-width: 150px;
  }
}
.hoverPersonBox {
  .personMessage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 260px;
    height: 68px;
    padding: 0 20px;
    color: var(--font);
    font-size: 14px;
    border-bottom: 1px solid var(--bd-20);
    .left {
      display: flex;
      align-items: center;
    }
    .imgBox {
      min-width: 32px;
      min-height: 32px;
      color: var(--font);
      border: 1px solid var(--bd-a50);
      border-radius: 50%;
      img {
        width: 32px;
        height: 32px;
        object-fit: cover;
        border-radius: 50%;
      }
    }
  }
  .orderMenu {
    height: 50px;
    padding: 0 20px;
    color: var(--font);
    font-size: 14px;
    line-height: 50px;
  }
  :global(.ant-dropdown-menu-item) {
    padding: 0;
  }
}
.space {
  flex: 1;
}
.right {
  display: flex;
  flex-direction: row;
  align-items: center;
  float: right;
  width: calc(100% - 80px);
  height: 100%;
  margin-left: auto;
  overflow: hidden;
  :global {
    .ant-cascader-picker:focus .ant-cascader-input {
      border: none !important;
      box-shadow: none;
    }
    .ant-input {
      border: none;
      border-color: transparent;
      border-radius: 0;
      box-shadow: none;
    }
  }

  .action {
    display: inline-block;
    height: 100%;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
    > i {
      color: #d3d4d4;
      vertical-align: middle;
    }
    &:hover {
      background: rgba(0, 0, 0, 0.025);
    }
    &:global(.opened) {
      background: rgba(0, 0, 0, 0.025);
    }
  }
  .search {
    padding: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: 20px 0;
      margin-right: 8px;
      color: #18a0fb;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
    }
  }
}

.dark {
  height: 64px;
  .action {
    color: rgba(255, 255, 255, 0.85);
    > i {
      color: rgba(255, 255, 255, 0.85);
    }
    &:hover,
    &:global(.opened) {
      background: #18a0fb;
    }
  }
}

:global(.ant-pro-global-header) {
  .dark {
    .action {
      color: #d3d4d4;
      > i {
        color: #d3d4d4;
      }
      &:hover {
        color: rgba(255, 255, 255, 0.85);
        > i {
          color: rgba(255, 255, 255, 0.85);
        }
      }
    }
  }
}

@media only screen and (max-width: 768px) {
  :global(.ant-divider-vertical) {
    vertical-align: unset;
  }
  .name {
    display: none;
  }
  .right {
    position: absolute;
    top: 0;
    right: 12px;
    width: calc(100% - 150px);
    .account {
      .avatar {
        margin-right: 0;
      }
    }
  }
}
